﻿using MediatR;
using RBAC.MaHaiBo.Entity.Traceability;
using System.ComponentModel.DataAnnotations;

namespace RBAC.MaHaiBo.API.Application.Command.TracingCommand
{
    public class TracingCreateCommand:IRequest<int>
    {
        // <summary>
        /// 溯源表编号
        /// </summary>
        public int TracingId { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        public int CommodityId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string? LOT { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public int ShelfLife { get; set; }
        /// <summary>
        /// 生产许可
        /// </summary>
        public string? ProductionPermit { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? Manufacturer { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        public string? SurfacePlot { get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string? AddName { get; set; } = "张三";
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
    }
}
